package com.chen10.cattle.common.enums.friend;

import lombok.Getter;

@Getter
public enum FriendRequestStatusEnums {
    UNPROCESSED("待处理","0"),
    ACCEPTED("已接受","1"),
    REFUSED("已拒绝","2");
    private final String message;
    private final String status;

    FriendRequestStatusEnums(String message, String status) {
        this.message = message;
        this.status = status;
    }

    public static boolean isExist(Integer status) {
        for (FriendRequestStatusEnums value : FriendRequestStatusEnums.values()) {
            if (value.getStatus().equals(status)) {
                return true;
            }
        }
        return false;
    }
}
